package com.ych.SDK.alibaba.ossSDK.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * Created with IntelliJ IDEA.
 * Author: Usopp.tsui
 * Date: 2021/1/20
 * Time: 12:02
 * Description:
 */
@Component
public class AliOssConfig {

    public static String endpoint;

    @Value("${sdk.aliOss.endpoint}")
    public void setEndpoint(String endpoint) {
        this.endpoint = endpoint;
    }

    public static String accessKeyId;

    @Value("${sdk.aliOss.access_key_id}")
    public void setAccessKeyId(String accessKeyId) {
        this.accessKeyId = accessKeyId;
    }

    public static String accessKeySecret;

    @Value("${sdk.aliOss.access_key_secret}")
    public void setAccessKeySecret(String accessKeySecret) {
        this.accessKeySecret = accessKeySecret;
    }

    public static String bucketName;

    @Value("${sdk.aliOss.bucket_name}")
    public void setBucketName(String bucketName) {
        this.bucketName = bucketName;
    }

    public static String path;

    @Value("${sdk.aliOss.path}")
    public void setPath(String path) {
        this.path = path;
    }
}
